package com.glb.app.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;


@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
//        , chatModel = "qwenChatModel",
//        chatMemory = "qwenChatMemory",
        chatMemoryProvider = "qwenChatMemoryProviderXiaoZhi",
        tools = "appointmentTools",
//        contentRetriever = "contentRetrieverXiaoZhi")
        contentRetriever = "contentRetrieverXiaoZhiPincone")
public interface XiaoZhiAgent {


    @SystemMessage(fromResource = "xiaozhi-prompt-template.txt")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
